+2002-01-21 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_popup,
+ gtk_item_factory_popup_with_data): Document allowed values
+ for ifactory.
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make
+ it work for paths with underline accelerators.
+
Fri Jan 18 16:31:21 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
+2002-01-21 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_popup,
+ gtk_item_factory_popup_with_data): Document allowed values
+ for ifactory.
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make
+ it work for paths with underline accelerators.
+
Fri Jan 18 16:31:21 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
+2002-01-21 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_popup,
+ gtk_item_factory_popup_with_data): Document allowed values
+ for ifactory.
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make
+ it work for paths with underline accelerators.
+
Fri Jan 18 16:31:21 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
+2002-01-21 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_popup,
+ gtk_item_factory_popup_with_data): Document allowed values
+ for ifactory.
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make
+ it work for paths with underline accelerators.
+
Fri Jan 18 16:31:21 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
+2002-01-21 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_popup,
+ gtk_item_factory_popup_with_data): Document allowed values
+ for ifactory.
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make
+ it work for paths with underline accelerators.
+
Fri Jan 18 16:31:21 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
+2002-01-21 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_popup,
+ gtk_item_factory_popup_with_data): Document allowed values
+ for ifactory.
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make
+ it work for paths with underline accelerators.
+
Fri Jan 18 16:31:21 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
+2002-01-21 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_popup,
+ gtk_item_factory_popup_with_data): Document allowed values
+ for ifactory.
+
+ * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make
+ it work for paths with underline accelerators.
+
Fri Jan 18 16:31:21 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
gtk_item_factory_delete_entry (GtkItemFactory *ifactory,
GtkItemFactoryEntry *entry)
{
+ gchar *path;
+ gchar *parent_path;
+ gchar *name;
+
g_return_if_fail (GTK_IS_ITEM_FACTORY (ifactory));
g_return_if_fail (entry != NULL);
+ g_return_if_fail (entry->path != NULL);
+ g_return_if_fail (entry->path[0] == '/');
+
+ if (!gtk_item_factory_parse_path (ifactory, entry->path,
+ &path, &parent_path, &name))
+ return;
+
+ gtk_item_factory_delete_item (ifactory, path);
- gtk_item_factory_delete_item (ifactory, entry->path);
+ g_free (path);
+ g_free (parent_path);
+ g_free (name);
}
/**
/**
* gtk_item_factory_popup:
- * @ifactory: a #GtkItemFactory
+ * @ifactory: a #GtkItemFactory of type #GTK_TYPE_MENU (see gtk_item_factory_new())
* @x: the x position
* @y: the y position
* @mouse_button: the mouse button which was pressed to initiate this action
/**
* gtk_item_factory_popup_with_data:
- * @ifactory: a #GtkItemFactory
+ * @ifactory: a #GtkItemFactory of type #GTK_TYPE_MENU (see gtk_item_factory_new())
* @popup_data: data available for callbacks while the menu is posted
* @destroy: a #GtkDestroyNotify function to be called on @popup_data when
* the menu is unposted